package c.h.a.m0;

import java.text.Collator;
import java.util.Comparator;

/* compiled from: LabelComparator */
public class m implements Comparator<String> {
    public final Collator a = Collator.getInstance();

    /* renamed from: a */
    public int compare(String str, String str2) {
        int i = 0;
        Object obj = (str.length() <= 0 || !Character.isLetterOrDigit(str.codePointAt(0))) ? null : 1;
        if (str2.length() > 0 && Character.isLetterOrDigit(str2.codePointAt(0))) {
            i = 1;
        }
        if (obj != null && i == 0) {
            return -1;
        }
        if (obj != null || i == 0) {
            return this.a.compare(str, str2);
        }
        return 1;
    }
}
